package com.itheima.thread;

public class Demo04 {

    public static void main(String[] args) {
       new Thread(new Runnable() {
           @Override
           public void run() {
               for (int i = 0; i < 100; i++) {
                   System.out.println("runable的匿名内部类执行到了"+i);
               }
           }
       }).start();

       new Thread(()->{
           for (int i = 0; i < 100; i++) {
               System.out.println("runable的lambda表达式执行到了"+i);
           }
       }).start();


    }
}
